package GirlFriend;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        girlFriend gf1 = new girlFriend("pdd",19,1.23);
        girlFriend gf2 = new girlFriend("ccd",20,1.33);
        girlFriend gf3 = new girlFriend("add",21,1.43);

        girlFriend[] arr = {gf1,gf2,gf3};
        Arrays.sort(arr , ((o1, o2) -> o1.getAge()- o2.getAge()));
    }
}
